USE [ALIBABA]
GO
/****** Object:  StoredProcedure [dbo].[SP_DANHSACHSANPHAMMUA]    Script Date: 25-Jun-13 3:58:45 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_TONGSPMUATHEOMATV]
@MaTV int
AS
BEGIN
	SELECT COUNT(MaSPMua)
	FROM SANPHAMMUA
	WHERE MaThanhVien = @MaTV
END